<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
	<head>
	    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
	    <title>修改文章</title>
	    <link href="<%= basePath%>umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
	    <script type="text/javascript" src="<%= basePath%>umeditor/third-party/jquery.min.js"></script>
	    <script type="text/javascript" charset="utf-8" src="<%= basePath%>umeditor/umeditor.config.js"></script>
	    <script type="text/javascript" charset="utf-8" src="<%= basePath%>umeditor/umeditor.min.js"></script>
	    <script type="text/javascript" src="<%= basePath%>umeditor/lang/zh-cn/zh-cn.js"></script>
	    <script type="text/javascript">
	    	$(function($){
	    		UM.getEditor('myEditor').setContent('${art.text}');
				$("option[value=${art.type}]").attr("selected","selected");
	    	});
	    </script>
	</head>
	<body>
		文章标题<input type="text" id="arttitle" name="arttitle" value="${art.title}"/><br>
				<input  id="s" name="text" style="display:none"/>
				<input  id="onlytext" name="onlytext" style="display:none"/>
			分类
				<select id="type" name="type">
					<option value="2">情感</option>
					<option value="3">吃货</option>
					<option value="4">新技能</option>
					<option value="5">正能量</option>
					<option value="6">其他</option>
				</select><br/>
		标签<input type="text" id="tag" name="tag" value="${art.tag}">多个标签请用空格隔开<br/>
		文章图片
     		<img alt="" src="<%= basePath%>${art.picpath }"><br/><br/><br/>
		<script type="text/plain" id="myEditor" style="width:1000px;height:240px;"></script>
		<input type="submit" onclick="f()" value="提交">
	</body>
	<script type="text/javascript">
		 var um = UM.getEditor('myEditor');
	</script>
</html>